import request from '@/utils/request'

export const Industry = () => {
  return request.get('/park/industry')
}

// 上传
// export function update(data) {
//   return request({
//     url: '/upload',
//     method: 'post',
//     data
//   })
// }
export const update = (data) => {
  return request.post('/upload',
    data
  )
}

// 表单发送
export const addSubmit = (data) => {
  return request.post('/park/enterprise',
    data
  )
}

// 编辑回显
export const editList = (id) => {
  return request.get(`/park/enterprise/${id}`)
}
// 编辑确定
export const editSubmit = (data) => {
  return request.put(`/park/enterprise`, data)
}

// 点击查看
export function getList(id) {
  return request({
    url: `/park/enterprise/${id}`,
    method: 'GET'
  })
}
